package com.momo.mapper.mapper;

import com.momo.mapper.dataobject.BugDO;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 由于需要对分页支持,请直接使用对应的DAO类
 * 注意:此结构有系统生成,禁止手工修改,以免被覆盖,请通过dalgen生成
 * The Table SYS_BUG.
 * 产品提优
 */
public interface BugDOMapper{

    /**
     * desc:插入表:SYS_BUG.<br/>
     * descSql =  insert into sys_bug id, sys_product_name, sys_product_img, sys_product_status, sys_product_type, sys_product_detail, sys_product_reply, create_by, create_time, update_time, update_by, #{id,jdbcType=BIGINT}, #{sysProductName,jdbcType=VARCHAR}, #{sysProductImg,jdbcType=VARCHAR}, #{sysProductStatus,jdbcType=CHAR}, #{sysProductType,jdbcType=CHAR}, #{sysProductDetail,jdbcType=VARCHAR}, #{sysProductReply,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, 
     * @param entity entity
     * @return int
     */
    int insert(BugDO entity);
    /**
     * desc:更新表:SYS_BUG.<br/>
     * descSql =  update sys_bug sys_product_name = #{sysProductName,jdbcType=VARCHAR}, sys_product_img = #{sysProductImg,jdbcType=VARCHAR}, sys_product_status = #{sysProductStatus,jdbcType=CHAR}, sys_product_type = #{sysProductType,jdbcType=CHAR}, sys_product_detail = #{sysProductDetail,jdbcType=VARCHAR}, sys_product_reply = #{sysProductReply,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, where id = #{id,jdbcType=BIGINT}
     * @param entity entity
     * @return int
     */
    int update(BugDO entity);
    /**
     * desc:根据主键删除数据:SYS_BUG.<br/>
     * descSql =  DELETE FROM SYS_BUG WHERE ID = #{id,jdbcType=BIGINT}
     * @param id id
     * @return int
     */
    int deleteById(Long id);
    /**
     * desc:根据主键获取数据:SYS_BUG.<br/>
     * descSql =  SELECT * FROM sys_bug and sys_product_status = #{sysProductStatus,jdbcType=VARCHAR} and sys_product_type = #{sysProductType,jdbcType=CHAR} 
     * @param entity entity
     * @return List<BugDO>
     */
    List<BugDO> getBugList(BugDO entity);
}
